//
//  Roster.h
//  VKChat
//
//  Created by Максим Бризинский on 31.01.11.
//  Copyright 2011 БГУИР. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "VKApi.h"

@protocol RosterDelegate
-(void)userOnline:(User*) user;
-(void)userOffline:(User*) user;
@end

@interface Roster : NSObject<VKApiRosterDelegate> {
	NSMutableArray* _onlineFriends;
	NSArray* _allFriends;
	
	id<RosterDelegate> _delegate;
	int _countOnline;
	int _countOffline;

}
@property (nonatomic, retain) id<RosterDelegate> delegate;
@property (nonatomic, retain) NSMutableArray* onlineFriends;
@property (nonatomic, retain) NSArray* allFriends;
@property (readonly) int countOnline;
@property (readonly) int countOffline;

-(void)didFriendOnlineWithUid:(long) uid;
-(void)didFriendOfflineWithUid:(long) uid;

-(User*) searchUserForUid:(long) uid;
@end
